cap log close
clear
set more off
global projdir "Q:/dc1prhcmsas01\PU2/code"

*Create a consistent crosswalk between the string "client_code" with a generated numeric variable "client_id"
*Assigns each client_id their most common industry code 
*Creates a balanced panel of firms for each event in the difference-in-difference
do "$projdir/0_client_crosswalk_wr.do"

*Impute the number of paychecks that firms give each month from fluctuations in their monthly gross pay.
do "$projdir/1_number_paychecks_wr.do"

*Clean each month of data from Jan 2013 to Dec 2020 by extracting key variables, merging on the crosswalk and number of paychecks, and saving as DTA file
do "$projdir/2_clean_wr.do"

*Create crosswalks to identify a balanced panel of firms from May 2015-2018 and from May 2013-2015
do "$projdir/3_balanced_firms_wr.do"

*Identify a balanced panel of workers over the same time periods as above
do "$projdir/4_balanced_workers_wr.do"

cap log close
